package org.pas.fb2.tag;

public class StanzaTag extends Tag {

    static final String NAME = "stanza";

    StanzaTag(Tag parent) {
        super(parent);
    }

    @Override
    public String getName() {
        return NAME;
    }

    @Override
    public Tag onChild(String name) {
        if (StanzaLineTag.NAME.equals(name)) {
            return new StanzaLineTag(this);
        }
        return super.onChild(name);
    }

    @Override
    protected void doClose() {
        out("");
    }
    

}